package cn.wolfcode.car.business.service;


import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.query.ServiceItemQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 养修服务单项接口
 */
public interface IServiceItemService extends IService<ServiceItem> {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<ServiceItem> query(ServiceItemQuery qo);


    void saleOff(Long id);

    void saleOn(Long id);

    /**
     * 接收发起审核的数据
     * @param id
     * @param bpmnInfoId
     * @param director
     * @param finance
     * @param info
     */
    void startAudit(Long id, Long bpmnInfoId, Long director, Long finance, String info);

    /**
     * 修改服务单项状态改为初始化状态
     * @param id
     * @param auditStatus
     */
    void changeAuditStatus(long id, Integer auditStatus);

    /**
     * 服务单项状态对应更改
     * @param serviceItemInfo
     * @param auditstatusApproved
     */
    void updateAuditStatus(Long serviceItemInfo, Integer auditstatusApproved);

    void updateServiceItem(ServiceItem serviceItem);
}
